/************************************************************************************
**                                                                                 **
**                               mcHF QRP Transceiver                              **
**                             K Atanassov - M0NKA 2014                            **
**                                                                                 **
**---------------------------------------------------------------------------------**
**                                                                                 **
**  File name:                                                                     **
**  Description:                                                                   **
**  Last Modified:                                                                 **
**  Licence:		For radio amateurs experimentation, non-commercial use only!   **
************************************************************************************/

#ifndef __IQ_RX_FILTER_AM_6KHZ_H
#define __IQ_RX_FILTER_AM_6KHZ_H

#define Q_BLOCK_SIZE		1
#define Q_NUM_TAPS			89

/*
 	 * 89 tap FIR lowpass filter for AM demodulation
     * 6 kHz lowpass
     * Fc = 2.64 kHz (0.110)
     * BW = 638 kHz (0.266)
     * Phase = 0.0 Deg
	 *
     * -6dB @ 6.0 kHz
     * -20dB @ 6.5 kHz
     * -40dB @ 7.0 kHz
     * -60dB > 7.2 kHz
     *
     * 20150724 by KA7OEI using Iowa Hills Hilbert Filter Designer
     *
*/

const float iq_rx_am_6k_coeffs[Q_NUM_TAPS] =
{
		-0.000004880093665016,
		0.000056249601206470,
		0.000106631842609010,
		0.000081384254139970,
		-0.000058736957755522,
		-0.000272365414638255,
		-0.000425548359876376,
		-0.000357422252818966,
		-0.000005244245277373,
		0.000490974654661712,
		0.000803539254316524,
		0.000594128178328428,
		-0.000221469661023948,
		-0.001297764644188940,
		-0.001948810489192100,
		-0.001535669576006110,
		0.000035159562865781,
		0.002042237502232450,
		0.003191717421535510,
		0.002364285159575850,
		-0.000519165742550591,
		-0.004107368177389280,
		-0.006132446052393760,
		-0.004729819141807280,
		0.000138536384265303,
		0.006130339738902320,
		0.009466230734482630,
		0.007122248925836100,
		-0.000902500392804507,
		-0.010767353229646000,
		-0.016344468781221300,
		-0.012706451532127600,
		0.000277710569700882,
		0.016562752996003900,
		0.026194213119574000,
		0.020664397226820300,
		-0.001236820922091710,
		-0.030498087727862400,
		-0.050224694289173800,
		-0.042930930378686000,
		0.000379604033916306,
		0.073954541623616600,
		0.157507699515675000,
		0.223513877747226000,
		0.248565464214855000,
		0.223513877747230000,
		0.157507699515682000,
		0.073954541623623400,
		0.000379604033921383,
		-0.042930930378683800,
		-0.050224694289174300,
		-0.030498087727864600,
		-0.001236820922093990,
		0.020664397226819100,
		0.026194213119574100,
		0.016562752996005000,
		0.000277710569702140,
		-0.012706451532126900,
		-0.016344468781221300,
		-0.010767353229646500,
		-0.000902500392805126,
		0.007122248925835810,
		0.009466230734482780,
		0.006130339738902770,
		0.000138536384265717,
		-0.004729819141807150,
		-0.006132446052393960,
		-0.004107368177389690,
		-0.000519165742550966,
		0.002364285159575700,
		0.003191717421535620,
		0.002042237502232730,
		0.000035159562866079,
		-0.001535669576005930,
		-0.001948810489192080,
		-0.001297764644189040,
		-0.000221469661024093,
		0.000594128178328318,
		0.000803539254316486,
		0.000490974654661737,
		-0.000005244245277321,
		-0.000357422252818922,
		-0.000425548359876357,
		-0.000272365414638260,
		-0.000058736957755538,
		0.000081384254139956,
		0.000106631842609003,
		0.000056249601206470,
		-0.000004880093665013
};

#endif
